projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6515fde
)
(Fset_face_attribute_internal): Don't call unload_font
author
Richard M. Stallman
<rms@gnu.org>
Mon, 24 May 1993 00:03:08 +0000
(
00:03
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 24 May 1993 00:03:08 +0000
(
00:03
+0000)
for the frame's own font.
src/xfaces.c
patch
|
blob
|
history
diff --git
a/src/xfaces.c
b/src/xfaces.c
index 4c053f663fa67b3599df53300bb93ade99e13ccd..5aec6907c0cf76fddde2b525e7f6c9f3a06494f1 100644
(file)
--- a/
src/xfaces.c
+++ b/
src/xfaces.c
@@
-863,7
+863,8
@@
DEFUN ("set-face-attribute-internal", Fset_face_attribute_internal,
if (EQ (attr_name, intern ("font")))
{
XFontStruct *font = load_font (f, attr_value);
- unload_font (f, face->font);
+ if (face->font != f->display.x->font)
+ unload_font (f, face->font);
face->font = font;
}
else if (EQ (attr_name, intern ("foreground")))